package com.lexicalAnalyzer;

/**
 * Created with IntelliJ IDEA.
 * User: Lenovo
 * Date: 20.11.2012
 * Time: 12:39
 * To change this template use File | Settings | File Templates.
 */
public class Token
{
    private TokenCode tokenCode;
    private OperatorType operatorType;
    private DataType dataType;
    private Object dataValue;
    private SymbolTableEntry symbolTableEntry;

    // smiður
    public Token(TokenCode _tokenCode , OperatorType _operatorType , DataType _dataType, Object _dataValue)
    {
        this.tokenCode = _tokenCode;
        this.operatorType = _operatorType;
        this.dataType = _dataType;
        this.dataValue =_dataValue;

    }

    // Get and setters
    public TokenCode getTokenCode()
    {
        return this.tokenCode;
    }

    public void setTokenCode(TokenCode tokenCode)
    {
        this.tokenCode = tokenCode;
    }
    public OperatorType getoperatorType()
    {
        return this.operatorType;
    }

    public void setOperatorType(OperatorType operatorType)
    {
        this.operatorType = operatorType;
    }

    public DataType getDataType()
    {
        return this.dataType;
    }

    public void setDataType(DataType dataType)
    {
        this.dataType = dataType;
    }

    public Object getDataValue()
    {
        return this.dataValue;
    }

    public void setDataValue(Object dataValue)
    {
        this.dataValue = dataValue;
    }

    public SymbolTableEntry getSymbolTableEntry()
    {
        return this.symbolTableEntry;
    }

    public void setSymbolTableEntry(SymbolTableEntry _symbolTableEntry)
    {
        symbolTableEntry = _symbolTableEntry;
    }

}
